<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="com.pengtu.security.SpringSecurityUtils"%>
<%@ include file="/common/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="menu" content="assetMenu" />
<meta name="nav" content="0" />
<meta name="acc" content="1-1" />
<title>收文管理</title>
</head>
<body>
	<div id="heading" class="received">
		<h6>收文管理</h6>
	</div>
	<div id="message">
		<s:actionmessage theme="custom" cssClass="success" />
	</div>
	<form action="${ctx}/admin/received!info.action" method="get"
		class="yform" id="mainForm">
		<input type="hidden" name="filter_LIKES_status" id="filter_LIKES_status"
			value="${param['filter_LIKES_status'] }" /> <input type="hidden"
			name="acc" id="acc" value="${param['acc'] }" />
		<div id="filter">
			<ul>
				<li>文件标题：<input type="text" name="filter_LIKES_title"
					value="${param['filter_LIKES_title']}" />
				</li>
				<li>来问原号：<input type="text" name="filter_LIKES_refeNum"
					value="${param['filter_LIKES_refeNum']}" />
				</li>
				<li>发文编号：<input type="text" name="filter_LIKES_officeNum"
					value="${param['filter_LIKES_officeNum']}" />
				</li>
				<li>公文来源：<input type="text" name="filter_LIKES_source"
					value="${param['filter_LIKES_source']}" />
				</li>
			</ul>
			<div class="type-button">
				<input type="button" value="查询" onclick="search();" class='search' />
			</div>
		</div>
		<div id="content">
			<table>
				<tr>
					<th><a id="createDate"
						href="javascript:sort('createDate','asc')">序号</a></th>
					<th><a id="title" href="javascript:sort('title','asc')">标题</a>
					</th>
					<th><a id="refeNum" href="javascript:sort('refeNum','asc')">来文原号</a>
					</th>
					<th><a id="officeNum" href="javascript:sort('officeNum','asc')">收文编号</a>
					</th>
					<th><a id="secret" href="javascript:sort('secret','asc')">密集程度</a>
					</th>
					<th><a id="crash" href="javascript:sort('crash','asc')">紧急程度</a>
					</th>
					<th>操作</th>
				</tr>
				<c:forEach items="${page.result }" var="received" varStatus="state">
					<tr>
						<td>${page.first+state.index }</td>
						<td><pt:text limit="12">${received.title }</pt:text>
						</td>
						<td>${received.refeNum }</td>
						<td>${received.officeNum }</td>
						<td><pt:code category="3054" code="${received.secret }"></pt:code>
						</td>
						<td><pt:code category="3053" code="${received.crash }"></pt:code>
						</td>
						<td><c:if test="${received.status == '01' }">
								<a href="${ctx}/admin/received!input.action?id=${received.id}">编辑</a>
								<a href="${ctx}/admin/received!delete.action?id=${received.id}"
									onclick="return isProcess('将删除公文');">删除</a>
								<a href="${ctx}/admin/received!start.action?id=${received.id}"
									onclick="return isProcess();">启动流程</a>
							</c:if> <c:if test="${received.status == '02' }">
								<a href="${ctx}/admin/received!input.action?id=${received.id}">编辑</a>
								<a
									href="${ctx }/admin/received!judge.action?id=${received.id}&status=${received.status}">处理流程</a>
							</c:if> <c:if
								test="${received.status != '02' && received.status != '01' }">
								<a href="${ctx }/admin/received!last.action?id=${received.id}">查看</a>
								<a
									href="${ctx }/admin/received!judge.action?id=${received.id}&status=${received.status}">处理流程</a>
							</c:if></td>
					</tr>
				</c:forEach>
			</table>
		</div>
		<jsp:include page="/common/page.jsp" flush="true" />
		<div class="type-button">
			<input type="button" class="add" value="新增"
				onclick="window.location.href='${ctx}/admin/received!input.action'" />
		</div>
	</form>
</body>
</html>